/*
 * @Author: EyeSklear 1814580085@qq.com
 * @Date: 2024-03-04 20:27:13
 * @LastEditors: EyeSklear 1814580085@qq.com
 * @LastEditTime: 2024-03-09 15:09:24
 * @FilePath: \Scene_Back\src\path-list\entities\path-list.entity.ts
 * @Description:
 *
 * Copyright (c) 2024 by EyeSklear , All Rights Reserved.
 */
import {
  Entity,
  Column,
  PrimaryGeneratedColumn,
  UpdateDateColumn,
  BeforeInsert,
} from 'typeorm';
import { v4 as uuidv4 } from 'uuid';
@Entity()
export class PathList {
  @PrimaryGeneratedColumn('uuid')
  id: string;

  @Column()
  creator: string;

  @Column()
  type: string;

  @Column({
    type: 'timestamp without time zone',
    default: () => 'CURRENT_TIMESTAMP',
  })
  create_time: Date;

  @UpdateDateColumn({
    type: 'timestamp without time zone',
    default: () => 'CURRENT_TIMESTAMP',
  })
  update_time: Date;

  @Column()
  ord: number;

  @Column({ default: true })
  visual: boolean;
}
